# ArrayMasterX 项目构建工具

.PHONY: build run test clean deploy

# 构建所有服务
build:
	docker-compose build

# 启动所有服务
run:
	docker-compose up -d

# 停止所有服务
stop:
	docker-compose down

# 运行测试
test:
	@echo "Running tests..."
	cd data_service && pytest
	cd algorithm_engine && gradle test
	# 添加其他服务的测试命令

# 清理构建产物
clean:
	docker-compose down --rmi all --volumes --remove-orphans
	@echo "Cleaning build artifacts..."
	rm -rf data_service/__pycache__
	rm -rf algorithm_engine/build
	rm -rf bitmap_processor/build

# 部署到生产环境
deploy:
	@echo "Deploying to production..."
	scripts/deploy.sh

# 监控服务状态
monitor:
	docker-compose ps